using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    [Table("fim_mas_bank_branchs"), DataContract]
    public class MasBankBranch
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "BranchId", ResourceType = typeof(Resources.MasBankBranchsResource))]
        [Column("branch_seq")]
        public int BranchId { get; set; }

        [DataMember, Display(Name = "Code", ResourceType = typeof(Resources.MasBankBranchsResource))]
        [Column("branch_id")]
        public string Code { get; set; }

		[DataMember, Display(Name = "BranchName", ResourceType = typeof(Resources.MasBankBranchsResource))]
        [Column("branch_name")]
        public string BranchName { get; set; }

		[DataMember, Display(Name = "BranchNameEng", ResourceType = typeof(Resources.MasBankBranchsResource))]
        [Column("branch_name_eng")]
        public string BranchNameEng { get; set; }

		[ForeignKey("Bank")]
		[DataMember, Display(Name = "BankId", ResourceType = typeof(Resources.MasBankBranchsResource))]
        [Column("bank_seq")]
        public int BankId { get; set; }

        //[DataMember, Display(Name = "Address", ResourceType = typeof(Resources.MasBankBranchsResource))]
        //public string Address { get; set; }

        //[ForeignKey("District")]
        //[DataMember, Display(Name = "DistrictId", ResourceType = typeof(Resources.MasBankBranchsResource))]
        //public Nullable<int> DistrictId { get; set; }

        //[ForeignKey("Country")]
        //[DataMember, Display(Name = "CountryId", ResourceType = typeof(Resources.MasBankBranchsResource))]
        //public Nullable<int> CountryId { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MasBankBranchsResource))]
        [Column("record_status")]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MasBankBranchsResource))]
        [Column("created_by")]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MasBankBranchsResource))]
        [Column("created_when")]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MasBankBranchsResource))]
        [Column("updated_by")]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MasBankBranchsResource))]
        [Column("updated_when")]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        [DataMember]
		public virtual MasBank Bank { get; set; }

        //public virtual HRM.MasDistrict District { get; set; }

        //public virtual HRM.MasCountry Country { get; set; }

    }
}